#pragma once
#include "cocos2d.h"
#include "CupSprite.h"

using namespace cocos2d;

class ShelfSprite : public Sprite
{
	ShelfSprite();
	~ShelfSprite();

	CupSprite* Cups[5];

	Vec2 m_CupPosition_Red;
	Vec2 m_CupPosition_Yellow;
	Vec2 m_CupPosition_Blue;
	Vec2 m_CupPosition_Green;
	Vec2 m_CupPosition_Black;

	Vec2 Positions[5];
	Vec2 CrossPosition[5];
	Vec2 VerticalPosition[5];

	MenuItemImage* resetButton;

	void resetButtonCallBack();

	int keyIndex;
	static ShelfSprite* thisSprite;
	static Sprite* right;
	static Sprite* wrong;
public:	
	int keys[5];

	static ShelfSprite* getInstance();
	static bool putACup(CupSprite* cup);
	static void keysRight();
	static void keysWrong();
	static void disposeSprite();

	void reSetCup();	
};

